//
//  ReportGenerator.m
//  crashreport
//
//  Created by william mu on 12-8-9.
//  Copyright (c) 2012年 Tencent. All rights reserved.
//

#import "ReportGenerator.h"

#define DEFAULT

@implementation ReportGenerator
DEFINE_SINGLETON(ReportGenerator);

-(id) init
{
    if(INSTANCE_VAR_FOR(ReportGenerator))
        THROW_SINGLETON_EXCEP();
    
    if(self = [super init])
    {
        INSTANCE_VAR_FOR(ReportGenerator) = self;
    }
    
    return self;
}

-(void) reset
{
    [m_stackTrace release], m_stackTrace = nil;
}

-(NSString*) getDefaultDirectory
{
    
}

-(NSString*) createReport
{
    if(!m_thread)
        return nil;
    
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
    //NSString*  = [paths objectAtIndex:0];
}

-(NSString*) getReportPath
{
    [self createReport];
}
@end
